package com.levi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.levi.domain.Leave;

/**
 * @author shentong
 * @date 2021/8/16 12:16
 * @Description TODO
 */
public interface LeaveService extends IService<Leave> {
    /**
     * 创建请假申请
     * @param leave
     * @return
     */
    Leave add(Leave leave);

    /**
     * 提交请假申请
     * @param id
     */
    void submit(String id);

    /**
     * 审核
     * @param id
     * @param result
     * @param remark
     */
    void review(String id,Integer result,String remark);
}
